package condition;

import app.entity.AdminEntity;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class main {
    public static void main(String[] args) {
        AnnotationConfigApplicationContext ac=new AnnotationConfigApplicationContext();
        ac.getEnvironment().setActiveProfiles("test");
        ac.register(condionals.Config.class);
        ac.refresh();
        AdminEntity studententily= ac.getBean(AdminEntity.class);
        System.out.println(studententily);
    }
}
